from sqlalchemy import create_engine
from red_book_users import RedBookUser
from red_book_user_levels import RedBookUserLevel
from red_book_vips import RedBookVIP
from red_book_chat_logs import RedBookChatLog
from base import Base  # 导入共享的 Base
import sys
sys.path.append("")
from config.mysql_settings import DATABASE_URL

engine = create_engine(DATABASE_URL, echo=True)

# 创建或更新数据库表
Base.metadata.create_all(bind=engine)

print("Database tables created or updated successfully.")
